import service from '@/utils/request'
// @Tags Adc
// @Summary 创建adc表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Adc true "创建adc表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /adc/createAdc [post]
export const createAdc = (data) => {
  return service({
    url: '/adc/createAdc',
    method: 'post',
    data
  })
}

// @Tags Adc
// @Summary 删除adc表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Adc true "删除adc表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /adc/deleteAdc [delete]
export const deleteAdc = (params) => {
  return service({
    url: '/adc/deleteAdc',
    method: 'delete',
    params
  })
}

// @Tags Adc
// @Summary 批量删除adc表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除adc表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /adc/deleteAdc [delete]
export const deleteAdcByIds = (params) => {
  return service({
    url: '/adc/deleteAdcByIds',
    method: 'delete',
    params
  })
}

// @Tags Adc
// @Summary 更新adc表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Adc true "更新adc表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /adc/updateAdc [put]
export const updateAdc = (data) => {
  return service({
    url: '/adc/updateAdc',
    method: 'put',
    data
  })
}

// @Tags Adc
// @Summary 用id查询adc表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.Adc true "用id查询adc表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /adc/findAdc [get]
export const findAdc = (params) => {
  return service({
    url: '/adc/findAdc',
    method: 'get',
    params
  })
}

// @Tags Adc
// @Summary 分页获取adc表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取adc表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /adc/getAdcList [get]
export const getAdcList = (params) => {
  return service({
    url: '/adc/getAdcList',
    method: 'get',
    params
  })
}

// @Tags Adc
// @Summary 不需要鉴权的adc表接口
// @Accept application/json
// @Produce application/json
// @Param data query exampleReq.AdcSearch true "分页获取adc表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /adc/getAdcPublic [get]
export const getAdcPublic = () => {
  return service({
    url: '/adc/getAdcPublic',
    method: 'get',
  })
}
